QFileDialog::getOpenFileNames() is a static method and (QDir::Dirs & QDir::Files) = 0.